#########################################################-*- coding: utf-8 -*-
#
#
# This module provide several classes that used to parse downloaded data.
# Almost all data is come from www.cninfo.com.cn, www.sse.com.cn, www.szse.cn.
# And daily trading raw data is come from sina.
#
# info table data source:
#  sz A share info:
#     SZ1). src: http://www.szse.cn/szseWeb/FrontController.szse?ACTIONID=8&CATALOGID=1110&TABKEY=tab2&ENCODE=1
#         it is a downloadable xls file, but in html format.
#  sh A share info:
#     SH1). src1, all A stock list: http://www.sse.com.cn/sseportal/webapp/datapresent/SSEQueryStockInfoAct?keyword=&reportName=BizCompStockInfoRpt&PRODUCTID=&PRODUCTJP=&PRODUCTNAME=&CURSOR=1
#         parameter CURSOR is in form: 1, 51, 101, 151, ..., 851, 901...
#         totol sh A stock count is also in that page, patten like: 第1条到第50条，共920条
#     SH2). src2, per stock info: http://www.sse.com.cn/sseportal/webapp/datapresent/SSEQueryListCmpAct?reportName=QueryListCmpRpt&REPORTTYPE=GSZC&PRODUCTID=600000&COMPANY_CODE=600000
#         parameter PRODUCTID and COMPANY_CODE is stock code, we can use src1's info.
#         this link is about: 公司概况
#     SH3). src3, per stock info: http://www.sse.com.cn/sseportal/webapp/datapresent/SSEQueryStckStructAct?PRODUCT=600000&COMPANYCODE=600000&COMPANY_CODE=600000
#         this link is about: 股本结构
#     SH2-13). etc, all about: 公司概况 股本结构 筹资情况 利润分配 成交概况 行情图表 公司公告 公告摘要 公司章程 治理细则 股东大会资料 高管人员 
#         can be found from src2's sub linkage.
#
# industry, industry pe, etc can be download from:
#           http://index.cninfo.com.cn/files/csrc.xls
# 
##############################################################################

class ShStockListParser(object):
    """ Parse all sh stock code and name and fill into table 'info'.
        Source is come from SH1.
    """
    def __init__(self):
        pass
    
    pass

class ShStockBasicInfoParser(object):
    """ Parse sh per stock basic info and fill them into table 'info'.
        Source is come from SH2
    """
    def __init__(self):
        pass

    pass

class SzStockInfoParser(object):
    """ Parse data that need by table 'info' for all sz stock
    """
    def __init__(self):
        pass

    pass

    
